/*
包含多个 直接更新state的方法/函数 的对象
 */

// 接收地址信息
export const RECEIVE_ADDRESS = 'receive_address'
// 接收分类数组
export const RECEIVE_CATEGORYS = 'receive_categorys'
// 接收商家数组
export const RECEIVE_SHOPS = 'receive_shops'

export default {

  [RECEIVE_ADDRESS] (state, {address}) {
    state.address = address
  },
  [RECEIVE_CATEGORYS] (state, {categorys}) {
    state.categorys = categorys
  },
  [RECEIVE_SHOPS] (state, {shops}) {
    state.shops = shops
  }
}

